package cn.yunhe.entity;

import java.io.Serializable;
import java.util.List;

public class Page<T> implements Serializable {

    private int pageSize; // 每页显示多少条记录

    private int currentPage; //当前第几页数据

    private long totalRecord; // 一共多少条记录

    private long totalPage; // 一共多少页记录

    private List<T> dataList; //要显示的数据


    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public long getTotalRecord() {
        return totalRecord;
    }

    public void setTotalRecord(long totalRecord) {
        this.totalRecord = totalRecord;
    }

    public long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }
}
